<template>
    <div>
        <h1>当前数字是{{$store.state.count}}---{{$store.getters.type}}</h1>
        <!-- <h2>{{$store.state.qqq.name}}</h2> -->
        <button @click='change(6666)'>改名字</button>
    </div>
</template>
<script>
// @ is an alias to /src
import {mapActions} from 'vuex'
export default {
    name: 'XXX',
    data() {
        return {
            mix:888
        }
    },
    created() {
      console.log(2,this)
    },
    methods: {
        change(){
            // this.$store.commit('changeName',"哈哈哈")
            this.$store.commit('changeName',"哈哈哈")
            // this.$store.commit('fn1',666)
        }
        // ...mapActions({
        //     change:"qqq/changeName"
        // })
    },
    components: {
        
    }
}
</script>
<style lang="less">

</style>